package com.skyward.android.androiddemo2;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.skyward.android.androiddemo2.view.ViewTouchEventTest;

public class ViewTouchTest extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_view_touch_test);
        ViewTouchEventTest testView = (ViewTouchEventTest) findViewById(R.id.TestView);


//        testView.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                Log.i("myLog","onClick");
//            }
//        });
//
//        testView.setOnTouchListener(new View.OnTouchListener() {
//            @Override
//            public boolean onTouch(View v, MotionEvent event) {
//                switch (event.getAction()) {
//                    case MotionEvent.ACTION_DOWN:
//
//                        Log.i("myLog","onTouch ACTION_DOWN");
//
//                        break;
//                    case MotionEvent.ACTION_MOVE:
//                        Log.i("myLog","onTouch ACTION_MOVE");
//
//                        break;
//                    case MotionEvent.ACTION_UP:
//                        Log.i("myLog","onTouch ACTION_UP");
//
//                    default:
//                        break;
//                }
//                return false;
//            }
//        });
    }
}
